package top.infopub.mgr.bpa.dao;


import com.github.pagehelper.Page;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.CotBackupDomain;
import top.infopub.mgr.bpa.vo.CotBackupVo;
import top.infopub.model.bpa.BpaCotBackup;
import top.infopub.model.bpa.CotBackup;


/** 总包备案合同(BPA_COT_BACKUP) **/
public interface CotBackupDao extends GenericDao<BpaCotBackup, String> {

    /**
     * 根据条件查询分页数据
     * @param cotBackupVo
     * @return
     * @see
     */
    Page<CotBackupDomain> selectByDomainWhere(CotBackupVo cotBackupVo);

    /**
     * 根据条件查询-我审批的分页数据
     * @param cotBackupVo
     * @return
     * @see
     */
    Page<CotBackupDomain> selectMyCheckByDomainWhere(CotBackupVo cotBackupVo);

    /**
     * 详情
     * @param id
     * @return
     * @see
     */
    CotBackup queryById(String id);

    /**
     * 自带Id添加
     * @see
     */
    void insertById(CotBackup cotBackup);

    /**
     * 合同名称不能相同
     */
    int countCotName(String cotName);

    void updateCot(CotBackup cotBackup);

    void insertCot(CotBackup cotBackup);
}
